package org.tgcloud.group.repository;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.tgcloud.group.entity.MjMediumOtherProject;
import org.tgcloud.group.web.controller.dto.medium.AllProjectByYiHuoAndMediumDTO;
import org.tgcloud.group.web.controller.dto.medium.MjMediumOtherProjectDTO;

import java.util.List;

/**
 * @Author: zhy
 * @Created: 2024-06-06-下午2:55
 * @Description: ${description}
 */
@Mapper
public interface MjMediumOtherProjectMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MjMediumOtherProject record);

    int insertSelective(MjMediumOtherProject record);

    MjMediumOtherProject selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MjMediumOtherProject record);

    int updateByPrimaryKey(MjMediumOtherProject record);

    List<MjMediumOtherProjectDTO> selectManageList(@Param("keyword") String keyword, @Param("otherProjectType") Integer otherProjectType);

    int updateDelStatusById(@Param("id") int id);

    List<AllProjectByYiHuoAndMediumDTO> selectAllProjectListByYiHuoAndMedium(@Param("keyword") String keyword, @Param("projectType") Integer projectType);
}